﻿using System.Collections.Generic;

namespace ICU
{
    public class Group
    {
        public enum JoinWay
        {
            None=0,
            JoinRequset=1,
            AnswerQuestion=2,
            Invite=4,
            All=255,
        }
        public List<long> users;
        public List<long> admins;
        public long owner;
        public long id;
        public JoinWay joinWay;
        public string joinAnswer;
        public string joinQuestion;
        public string name;
        public Group(long owner, long id, string name)
        {
            this.owner = owner;
            this.admins = new List<long>();
            this.users = new List<long>();
            this.users.Add(owner);
            this.id = id;
            this.name = name;
            this.joinWay = JoinWay.JoinRequset;
            this.joinAnswer = "";
            this.joinQuestion = "";
        }
    }
}
